package com.gzq.service.impl;

import java.util.List;

import com.gzq.dao.NoticeDao;
import com.gzq.entity.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gzq.service.NoticeService;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeDao noticeDao;

    @Override
    public List<Notice> findNoticeByType(int start, int size) {

        return noticeDao.findNoticeByType(start, size);
    }

    @Override
    public int findNoticeByTypeNum() {

        return noticeDao.findNoticeByTypeNum();
    }

    @Override
    public Notice findNoticeById(int id) {

        return noticeDao.findNoticeById(id);
    }

}
